package reflect;

public class ReflectDemo2 {
    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
        Person p=new Person();
        System.out.println(p);

        Class cls=Class.forName("reflect.Person");
        Object obj=cls.newInstance();
        System.out.println(obj);

    }
}
